
import org.apache.axis2.context.ConfigurationContext;
import org.apache.axis2.context.MessageContext;
import org.apache.axis2.description.AxisService;
import org.apache.axis2.engine.AxisConfiguration;


public class Ex10_Axis2Server {

	// вообще говоря, исключения надо обрабатывать корректно
	public static void main(String[] args) throws Exception
      {
     // запускаем сервис
     // http://localhost:6060/axis2/services/MyService?wsdl
        AxisConfiguration axisConfig = new AxisConfiguration();
        ConfigurationContext myConfigContext = new ConfigurationContext(axisConfig);
        org.apache.axis2.engine.AxisServer server = new org.apache.axis2.engine.AxisServer();
        server.deployService(MyService.class.getName());
        
        System.out.println("Service deployed");
        System.in.read();
       }
}


